<html  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/layui/jquery-3.5.1.min.js"></script>
    <link rel="stylesheet" href="/layui/css/layui.css"  media="all">
    <script src="/layui/layui.js" charset="utf-8"></script>
</head>
<body>
    <form class="layui-form" action="" lay-filter="example">
        <fieldset class="layui-elem-field" style="margin-top: 20px; padding-left: 20px" th:each="one:${list}" th:if="${list ne null} ">
            <legend>订票详情</legend>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">姓名</label>
                    <div class="layui-input-inline">
                        <input type="text" readonly="readonly" th:value="${one.travelPeople.name}" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">工号</label>
                    <div class="layui-input-inline">
                        <input type="text" readonly="readonly" th:value="${one.travelPeople.jobNumber}" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">出发时间</label>
                    <div class="layui-input-inline">
                        <input type="text" readonly="readonly" th:value="${#dates.format(one.departureTime,'yyyy-MM-dd HH:mm:ss') }" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">结束时间</label>
                    <div class="layui-input-inline">
                        <input type="text" readonly="readonly" th:value="${#dates.format(one.endTime,'yyyy-MM-dd HH:mm:ss')}" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">始发站</label>
                    <div class="layui-input-inline">
                        <input type="text" readonly="readonly" th:value="${one.departure}" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">终点站</label>
                    <div class="layui-input-inline">
                        <input type="text" readonly="readonly" th:value="${one.endCity}" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">交通工具</label>
                    <div class="layui-input-inline">
                        <input type="text" readonly="readonly" th:value="${one.transportType.value}" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">坐席等级</label>
                    <div class="layui-input-inline">
                        <input type="text" readonly="readonly" th:value="${one.transportSeatClass.value}" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">车次</label>
                    <div class="layui-input-inline">
                        <input type="text" readonly="readonly" th:value="${one.transportNumber}" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">座位号</label>
                    <div class="layui-input-inline">
                        <input type="text" readonly="readonly" th:value="${one.seatNo}" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">价格</label>
                    <div class="layui-input-inline">
                        <input type="text" readonly="readonly" th:value="${one.price}+'￥'" autocomplete="off" class="layui-input">
                    </div>
                </div>


                <!--                <button type="button" class="layui-btn layui-btn-primary layui-btn-sm">查看详情</button>-->
            </div>
        </fieldset>
    </form>
</body>
</html>